package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.system.AssginMenuDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: SysRoleMenuMapper
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/5/19 15:49
 * Version 1.0
 */
@Mapper
public interface SysRoleMenuMapper {
    //查询角色分配过的角色id列表
    List<Long> findSysRoleMenuByRoleId(Long roleId);

    //删除之前分配过的数据
    void deleteByRoleId(Long roleId);

    //实现保存角色分配菜单
    void doAssign(AssginMenuDto assginMenuDto);

    //将父此单的isHalf置为1
    void updateSysRoleMenuIsHalf(Long menuId);
}
